<?php  	


	if(isset($_GET['pKPartner'])){
		if($_GET['pKPartner'] != '' ){						
			require_once("include_dao.php");	
			
			DAOFactory::getUserDAO()->deleteByFKPartner($_GET['pKPartner']);
			DAOFactory::getPartnerDAO()->delete($_GET['pKPartner']);
			
			header( 'Location: partner_list.php?err=40');	
		}
		else
			header( 'Location: partner_list.php?err=42');
	}
	else
		header( 'Location: partner_list.php?err=42');
		
?>